package com.baselibrary.net;

/**
 * @author zhanglijie
 * @date 20-3-12
 * @Description
 */
public class PageData<T> {

    private T data;
    private int totalPage;
    private int totalCount;
    private int currentPage;
    private int pageSize;

    @Override
    public String toString() {
        return "PageData{" +
                "data=" + data +
                ", totalPage=" + totalPage +
                ", totalCount=" + totalCount +
                ", currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                '}';
    }

    public T getData() {
        return data;
    }

    public PageData<T> setData(T data) {
        this.data = data;
        return this;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public PageData<T> setTotalPage(int totalPage) {
        this.totalPage = totalPage;
        return this;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public PageData<T> setTotalCount(int totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public PageData<T> setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
        return this;
    }

    public int getPageSize() {
        return pageSize;
    }

    public PageData<T> setPageSize(int pageSize) {
        this.pageSize = pageSize;
        return this;
    }
}
